import request from '@/api/request.js';

export function repayHistory(loanNo){
	return new Promise((resolve, reject) =>{
		request('/repay/history/'+loanNo, 'GET')
		  .then((res) => {
		    resolve(res);
		  })
		  .catch((err) => {
		    reject(err);
		  });
	})
}

export function myRepayHistory(){
	return new Promise((resolve, reject) =>{
		request('/repay/history', 'GET')
		  .then((res) => {
		    resolve(res);
		  })
		  .catch((err) => {
		    reject(err);
		  });
	})
}